package com.joysuch.wwyt.common.enums;

public enum AppBusinessNoticeTypes {
    EDU(0,"教育培训"),
    FLOW(1,"流程审批"),
    INVESTIGATE(2,"隐患排查"),
    CERT_MATURITY(5,"证书提醒"),
    CERT_RECERTIFICATION(6,"证书提醒"),
    EMERGENCY_DRILL_PLAN(3,"应急演练计划"),
    GRS(7,"包保责任制");;

    private Integer index;
    private String type;

    AppBusinessNoticeTypes(Integer index, String type) {
        this.index = index;
        this.type = type;
    }

    public static String getType(Integer index) {
        AppBusinessNoticeTypes[] values = AppBusinessNoticeTypes.values();
        for (AppBusinessNoticeTypes value : values) {
            if (value.index.equals(index)) {
                return value.type;
            }
        }
        return null;
    }

    public Integer getIndex() {
        return index;
    }

    public void setIndex(Integer index) {
        this.index = index;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}
